Skip to content

feat: add modal to create new assignment - #1396

Open
rudimatz wants to merge 4 commits into
ietf-tools:mainfrom
rudimatz:feat/assignment-modal-in-tab
Open

feat: add modal to create new assignment#1396
rudimatz wants to merge 4 commits into
ietf-tools:mainfrom
rudimatz:feat/assignment-modal-in-tab

Conversation

@rudimatz

Copy link
Copy Markdown
Contributor

fix #1334

@rudimatz
rudimatz force-pushed the feat/assignment-modal-in-tab branch 2 times, most recently from 0d76a0f to 59c2395 Compare July 20, 2026 15:36
@rudimatz
rudimatz force-pushed the feat/assignment-modal-in-tab branch from 59c2395 to 49a5f6a Compare August 12, 2026 20:51
@rudimatz
rudimatz marked this pull request as ready for review August 12, 2026 20:51
@rudimatz
rudimatz requested a review from holloway August 12, 2026 20:55

const peopleWorkload = calculatePeopleWorkload(clusters, queueItems)

openOverlayModal({

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

await this?

It seems we have inconsistent patterns across the codebase for this so I'm not sure what the correct pattern is.

If it is awaited then the noop .catch(() => {}) is probably redundant, considering the following catch.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since it's in an async, awaiting would make sense to me. . .

} else if (props.message.type === 'assign') {
const message = props.message
} else if (props.message.type === 'assign' || props.message.type === 'add') {
const rfcToBeId = props.message.rfcToBeId

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit

Suggested change
const rfcToBeId = props.message.rfcToBeId
const { rfcToBeId } = props.message

@holloway holloway left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm only minor feedback

@jennifer-richards jennifer-richards left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tying the modal's ability to select the role / hide the blocked role specifically to the add message feels awkward to me. I'd have expected that to be an explicit option to the modal instead of tying its functionality that tightly to the workflows we have at the moment.

Just a comment because I mostly defer to @holloway on the PR overall.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add ability to assign a document from the Assignments & Authors tab

3 participants